package com.gz.moreaseManager.modules.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;




import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产品标签表
 * </p>
 *
 * @author wike
 * @since 2019-02-26
 */
@Data
@Accessors(chain = true)
@TableName("product_tag")
public class ProductTag extends Model<ProductTag> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 类别：获取字典
     */
    private Integer type;

    /**
     * 标签名称
     */
    private String name;

    /**
     * 标签图片
     */
    @TableField("tag_url")
    private String tagUrl;

    /**
     * 描述
     */
    private String remark;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField("create_person")
    private String createPerson;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
